package com.cg.slms.service;

import java.util.List;

import com.cg.slms.dao.IClientDao;
import com.cg.slms.domain.Client;

public class ClientService implements IClientService {
	private IClientDao clientDao;
	public List<Client> findClient(Client client) {
		return clientDao.findClient(client);
	}
	public IClientDao getClientDao() {
		return clientDao;
	}
	public void setClientDao(IClientDao clientDao) {
		this.clientDao = clientDao;
	}
	//增加
			public boolean addClient(Client client) {
				return clientDao.addClient(client);
			}
			//查id
			public boolean updateClient(Client client) {
				return clientDao.updateClient(client);
			}
			//修改
			public Client findClientById(String id) {
				return clientDao.findClientById(id);
			}
			//删除
			public boolean deleteClientById(String id) {
				return clientDao.deleteClientById(id);
			}
} 


